package com.ytsakura.blog.service;

import com.ytsakura.blog.pojo.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;


public interface UserService {

    User checkUser(String username,String password);

    User getUser(String username);

    User saveUser(User user);

    Page<User> listUser(Pageable pageable);

    User updateUser(Long id,User user);

    void updateAvatar(String avatar,Long id);
}
